#include <asm/e820.h>
#include <asm/proto.h>
#include <asm/bootsetup.h>
+#include <asm-xen/xen-public/memory.h>
+
+unsigned long pci_mem_start = 0xaeedbabe;
/*
* PFN of last memory page.
xen_override_max_pfn = (unsigned long) end_user_pfn;
}
-unsigned long pci_mem_start = 0xaeedbabe;
-
/*
* Search for the biggest gap in the low 32 bits of the e820
* memory space. We pass this space to PCI to assign MMIO resources
char *slash = strrchr(node + 1, '/');
if (!slash)
return talloc_strdup(node, "/");
- return talloc_asprintf(node, "%.*s", slash - node, node);
+ return talloc_asprintf(node, "%.*s", (int)(slash - node), node);
}
static enum xs_perm_type perm_for_id(domid_t id,
if (slash)
*slash = '\0';
- dest = talloc_asprintf(dir, "%.*s", dot - dir, dir);
+ dest = talloc_asprintf(dir, "%.*s", (int)(dot - dir), dir);
return rename(dir, dest) == 0;
}